package cn.iocoder.yudao.module.energy.controller.admin.data.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 能耗数据分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DataPageReqVO extends PageParam {

    @Schema(description = "设备ID", example = "19251")
    private String deviceId;

    @Schema(description = "设备名称", example = "芋艿")
    private String deviceName;

    @Schema(description = "数据时间戳")
    private LocalDateTime timestamp;

    @Schema(description = "电压(V)")
    private BigDecimal voltage;

    @Schema(description = "电流(A)")
    private BigDecimal currents;

    @Schema(description = "功率(kW)")
    private BigDecimal activePower;

    @Schema(description = "累计能耗(kWh)")
    private BigDecimal energyConsumption;

    @Schema(description = "设备温度(℃)")
    private BigDecimal temperature;

    @Schema(description = "状态", example = "1")
    private String status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}